<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=640px,user-scalable=no,target-densitydpi=device-dpi" />
		<link rel="stylesheet" href="../css/css.css" type="text/css" />
		<script type="text/javascript" src='../js/jquery.min.js'></script>
		<script type="text/javascript" src='../js/main_in.js'></script>
		<script type="text/javascript" src='../js/common.js'></script>
		<script type="text/javascript" src='../js/jquery.qrcode.min.js'></script>
		<script>
			
            var no = getUrlParam('no');
            
            
function plusReady(){
	search();
            // 在这里调用plus api
}
        if(window.plus){
            plusReady();
        }else{
            document.addEventListener('plusready',plusReady,false);
        }
            
            
            function search(){
            	$("#search_val").html('');
            	var wt=plus.nativeUI.showWaiting();
            	$.ajax({
            		url:"http://insure.unair.cn/api_express.php",
            		type: "POST",
            		data: {
            			no:no
            		},
            		success: function(data) {
            			if(data == '{}}' ){
							var item = "<div class='main_in_input_hide_child over_1' >无结果</div>" ;
							
						}else{
							data = eval("("+data+")");
							if(data == undefined){
								
								var item = "<div class='main_in_input_hide_child over_1' >无结果</div>" ;
							}else{
									var item = "<div style='font-size: 1.8em;color:#666;' class='main_in_input_hide_child' >快递：" + data['result']['type']  + "</div>" +
												"<div style='font-size: 1.8em;color:#666;' class='main_in_input_hide_child' >单号：" + data['result']['number']  + "</div>";
									$.each(data['result']['list'], function(k,v) {
										
	                                item += "<div style='font-size: 1.4em;color:#666;' class='main_in_input_hide_child' >" + v.time  + " : </div>" +
											"<div class='main_in_input_hide_child over_1' >&nbsp;&nbsp;" + v.status + "</div>" 
	                               });
											
							}
								
						}
							
            			
            			$("#search_val").append(item);
            			wt.close();
            		},
            		error:function(data){
            			wt.close();
            		}
            	})
            }
		</script>
	</head>
	<body>
		<div class="app_head">
			<div class="app_prev" onclick="clicked('./search.html')"><img src="../img/arrow.png" /></div>
            <div class="app_head_text">油价查询</div>
            <div class="app_share" ></div>
       </div>
       
        <div style="clear: both;"></div>
        <div style="padding-bottom: 80px;" class="app_body">
            <div class="main_in_api_head" id="do_search">查询结果</div>
            <div class="search_result">
                <div style='width:90%;' class='main_in_input_hide_main' id="search_val">
                    
                </div>
            </div>
        </div>
	</body>
</html>
